// 需求把换行做上
let btn = document.querySelector('button');

let content = document.querySelector('.content');
btn.onclick = ()=>{
    let num1 = parseInt(Math.random()*255)
    let num2 = parseInt(Math.random()*255)
    let num3 = parseInt(Math.random()*255)
    content.innerHTML += `<div style="background-color:rgb(${num1},${num2},${num3});width: 200px;
             height: 200px;" onclick="aclick(this)"></div>`
}
function aclick(a){
    a.remove();
    console.log('aaa');
    
}